﻿using DataEditor.DataLayer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataEditor.ViewModels
{
    public class PrefixItemViewModel : BaseViewModel
    {
        #region fields
        UNIT_PREFIX _model;
        #endregion

        #region properties
        public UNIT_PREFIX Model
        {
            get { return _model; }
        }

        public int ID
        {
            get
            {
                return _model.ID;
            }
        }

        public string Prefix
        {
            get { return _model.PREFIX; }
            set 
            { 
                _model.PREFIX = value;
                NotifyOfPropertyChange(() => Prefix);
            }
        }
        #endregion


        #region constructors
        public PrefixItemViewModel(UNIT_PREFIX model)
        {
            _model = model;
        }
        #endregion
    }
}
